package com.nextbus.transit;

import java.util.ArrayList;
import java.util.HashMap;

public class TransitSource {
    public static HashMap<String, String> routeAndRouteTitle;
    public static ArrayList<String> allRouteTags;
    
    public TransitSource(HashMap<String, String> routeAndRouteTitle) {
        super();
        this.routeAndRouteTitle = routeAndRouteTitle;
    }
    
    public int getRouteSize() {
        return routeAndRouteTitle.size();
    }
    
    public static void addRoute(String routeTag, String routeTitle) {
        routeAndRouteTitle.put(routeTag, routeTitle);
        allRouteTags.add(routeTag);
    }
    
    static {
        routeAndRouteTitle = new HashMap<String, String>();
        allRouteTags = new ArrayList<String>();
        
        // 添加路线
        addRoute("1", "1");
        addRoute("4", "4");
        addRoute("5", "5");
        addRoute("7", "7");
        addRoute("8", "8");
        addRoute("9", "9");
        addRoute("10", "10");
        addRoute("11", "11");
        addRoute("14", "14");
        addRoute("15", "15");
        addRoute("16", "16");
        addRoute("17", "17");
        addRoute("18", "18");
        addRoute("19", "19");
        addRoute("21", "21");
        addRoute("22", "22");
        addRoute("23", "23");
        addRoute("24", "24");
        addRoute("26", "26");
        addRoute("27", "27");
        addRoute("28", "28");
        addRoute("29", "29");
        addRoute("30", "30");
        addRoute("31", "31");
        addRoute("32", "32");
        addRoute("33", "33");
        addRoute("34", "34");
        addRoute("35", "35");
        addRoute("36", "36");
        addRoute("37", "37");
        addRoute("38", "38");
        addRoute("39", "39");
        addRoute("40", "40");
        addRoute("41", "41");
        addRoute("42", "42");
        addRoute("43", "43");
        addRoute("44", "44");
        addRoute("45", "45");
        addRoute("47", "47");
        addRoute("48", "48");
        addRoute("50", "50");
        addRoute("51", "51");
        addRoute("52", "52");
        addRoute("55", "55");
        addRoute("57", "57");
        addRoute("59", "59");
        addRoute("60", "60");
        addRoute("62", "62");
        addRoute("64", "64");
        addRoute("65", "65");
        addRoute("66", "66");
        addRoute("67", "67");
        addRoute("68", "68");
        addRoute("69", "69");
        addRoute("70", "70");
        addRoute("71", "71");
        addRoute("72", "72");
        addRoute("73", "73");
        addRoute("74", "74");
        addRoute("75", "75");
        addRoute("76", "76");
        addRoute("77", "77");
        addRoute("78", "78");
        addRoute("79", "79");
        addRoute("80", "80");
        addRoute("83", "83");
        addRoute("84", "84");
        addRoute("85", "85");
        addRoute("86", "86");
        addRoute("87", "87");
        addRoute("88", "88");
        addRoute("89", "89");
        addRoute("90", "90");
        addRoute("91", "91");
        addRoute("92", "92");
        addRoute("93", "93");
        addRoute("94", "94");
        addRoute("95", "95");
        addRoute("96", "96");
        addRoute("97", "97");
        addRoute("99", "99");
        addRoute("100", "100");
        addRoute("101", "101");
        addRoute("104", "104");
        addRoute("105", "105");
        addRoute("106", "106");
        addRoute("108", "108");
        addRoute("109", "109");
        addRoute("110", "110");
        addRoute("111", "111");
        addRoute("112", "112");
        addRoute("114", "114");
        addRoute("116", "116");
        addRoute("117", "117");
        addRoute("119", "119");
        addRoute("120", "120");
        addRoute("121", "121");
        addRoute("131", "131");
        addRoute("132", "132");
        addRoute("134", "134");
        addRoute("136", "136");
        addRoute("137", "137");
        addRoute("170", "170");
        addRoute("171", "171");
        addRoute("191", "191");
        addRoute("192", "192");
        addRoute("193", "193");
        addRoute("201", "201");
        addRoute("202", "202");
        addRoute("210", "210");
        addRoute("211", "211");
        addRoute("212", "212");
        addRoute("214", "214");
        addRoute("215", "215");
        addRoute("216", "216");
        addRoute("217", "217");
        addRoute("220", "220");
        addRoute("221", "221");
        addRoute("222", "222");
        addRoute("225", "225");
        addRoute("230", "230");
        addRoute("236", "236");
        addRoute("238", "238");
        addRoute("240", "240");
        addRoute("245", "245");
        addRoute("274", "274");
        addRoute("275", "275");
        addRoute("276", "276");
        addRoute("277", "277");
        addRoute("325", "325");
        addRoute("326", "326");
        addRoute("350", "350");
        addRoute("351", "351");
        addRoute("352", "352");
        addRoute("354", "354");
        addRoute("355", "355");
        addRoute("411", "411");
        addRoute("424", "424");
        addRoute("426", "426");
        addRoute("428", "428");
        addRoute("429", "429");
        addRoute("430", "430");
        addRoute("431", "431");
        addRoute("434", "434");
        addRoute("435", "435");
        addRoute("436", "436");
        addRoute("439", "439");
        addRoute("441", "441");
        addRoute("442", "442");
        addRoute("448", "448");
        addRoute("449", "449");
        addRoute("450", "450");
        addRoute("451", "451");
        addRoute("455", "455");
        addRoute("456", "456");
        addRoute("459", "459");
        addRoute("465", "465");
        addRoute("468", "468");
        addRoute("500", "500");
        addRoute("501", "501");
        addRoute("502", "502");
        addRoute("503", "503");
        addRoute("504", "504");
        addRoute("505", "505");
        addRoute("553", "553");
        addRoute("554", "554");
        addRoute("555", "555");
        addRoute("556", "556");
        addRoute("558", "558");
        addRoute("602", "602");
        addRoute("627", "627");
        addRoute("701", "701");
        addRoute("708", "708");
        addRoute("725", "725");
        addRoute("741", "741");
        addRoute("742", "742");
        addRoute("746", "746");
        addRoute("747", "747");
        addRoute("749", "749");
        addRoute("751", "751");
        addRoute("2427", "2427");
        addRoute("3233", "3233");
        addRoute("3738", "3738");
        addRoute("4050", "4050");
        addRoute("8993", "8993");
        addRoute("116117", "116117");
        addRoute("214216", "214216");
        addRoute("426439", "426439");
        addRoute("426455", "426455");
        addRoute("441442", "441442");
        addRoute("34E", "34E");
        addRoute("57A", "57A");
        addRoute("70A", "70A");
    }
}
